package com.zbkj.common.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbkj.common.model.monitor.ZfbMonitorEquipment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 平台端商户分页列表响应对象
 +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MerchantPageResponse对象", description="平台端商户分页列表响应对象")
public class ZfbMonitorEquipmentStatusResponse implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty("设备license")
    private String license;

    @ApiModelProperty("设备状态(0:未知; 1: 在线; 2:离线; 3:休眠; 6:设备区域限制; 7:4G 卡限制)")
    private Integer onlineStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "最新在线时间", hidden = true)
    private LocalDateTime lastOnlineTime;

}
